package com.xiaoyun.lzg.strategy.manager;

import com.xiaoyun.lzg.strategy.SuffixStrategy;
import com.xiaoyun.lzg.strategy.SuffixType;
import org.springframework.stereotype.Service;

import java.io.InputStream;

@Service
public class TXTModel extends SuffixStrategy {


    @Override
    public Object marker(String name, InputStream is) {
        String tempUrl = getFreeMarkerUtil().outTemp(is, name);
        return saveOne(tempUrl, name);
    }

    @Override
    public String getType() {
        return SuffixType.TXT;
    }

}
